<template>
  <el-descriptions class="margin-top" :column="2" border>
    <h1>学历信息</h1>
    <template slot="extra">
      <el-button type="primary" size="small" @click="resumeUpdata(resume.rid)">学历修改</el-button>
    </template>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user"></i>
        学校
      </template>
      <el-tag size="small">{{resume.school}}</el-tag>
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-s-promotion"></i>
        最高学历
      </template>
      {{resume.maxDegree}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user-solid"></i>
        专业
      </template>
      {{resume.major}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-suitcase"></i>
        入学时间
      </template>
      {{resume.begDate}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-mobile-phone"></i>
        毕业时间
      </template>
      {{resume.endDate}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-s-flag"></i>
        曾获奖项
      </template>
      {{resume.award}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location-outline"></i>
        学校经历
      </template>
      {{resume.exSchool}}
    </el-descriptions-item>
  </el-descriptions>
</template>
  <script>
export default {
  data() {
    return {
      resume: ""
    };
  },
  created() {
    const _this = this;
    let r = JSON.parse(window.localStorage.getItem("resume")); //获取父页面数据
    axios
      .get("http://localhost:8182/education/findById/" + r.rid)
      .then(function(resp) {
        _this.resume = resp.data.data;
      });
  },
  methods: {
    resumeUpdata(id) {
      this.$router.push("/educationUpdata?id=" + id);
    }
  }
};
</script>
  <style scoped>
</style>
  
